<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_flash.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">wb32l003_flash.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>This file contains all the functions prototypes for the FLASH firmware library.  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;wb32l003.h&quot;</code><br />
</div>
<p><a href="wb32l003__flash_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga76e8ea58ef37913dcdb61efae2d6ab8f"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_TIMEOUT_VALUE</b>&#160;&#160;&#160;50000U</td></tr>
<tr class="separator:ga76e8ea58ef37913dcdb61efae2d6ab8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga91bc73f5edfbaa5ccb63151a39646448"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_REGUNLOCK_KEY1</b>&#160;&#160;&#160;0x5A5A</td></tr>
<tr class="separator:ga91bc73f5edfbaa5ccb63151a39646448"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2cdb33714db71166be4c053fe5ae406d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_REGUNLOCK_KEY2</b>&#160;&#160;&#160;0xA5A5</td></tr>
<tr class="separator:ga2cdb33714db71166be4c053fe5ae406d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67290b307a772b4c57dccd0227ae17f1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___flag__definition.html#ga67290b307a772b4c57dccd0227ae17f1">FLASH_FLAG_BUSY</a>&#160;&#160;&#160;FLASH_CR_BUSY</td></tr>
<tr class="separator:ga67290b307a772b4c57dccd0227ae17f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga216f441000eb48a3f0955a445f4e7569"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___interrupt__definition.html#ga216f441000eb48a3f0955a445f4e7569">FLASH_IT_ALARM_ERASE_PROTADDR</a>&#160;&#160;&#160;(FLASH_IFR_IF1 | FLASH_CR_IE_1)</td></tr>
<tr class="separator:ga216f441000eb48a3f0955a445f4e7569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ebb896fb43b67b5938d1948171400d9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___interrupt__definition.html#ga8ebb896fb43b67b5938d1948171400d9">FLASH_IT_ALARM_ERASE_PCADDR</a>&#160;&#160;&#160;(FLASH_IFR_IF0 | FLASH_CR_IE_0)</td></tr>
<tr class="separator:ga8ebb896fb43b67b5938d1948171400d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4cc14e2c99ae7f8e5a8e371d03c8532c"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_PAGE_SIZE</b>&#160;&#160;&#160;0x200U</td></tr>
<tr class="separator:ga4cc14e2c99ae7f8e5a8e371d03c8532c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc635acd74645c59d22fa5ebadf3447e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_SIZE_32K</b>&#160;&#160;&#160;0x8000U</td></tr>
<tr class="separator:gadc635acd74645c59d22fa5ebadf3447e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78c492db43492f28bd0fb642c728a8ed"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_SIZE_64K</b>&#160;&#160;&#160;0x10000U</td></tr>
<tr class="separator:ga78c492db43492f28bd0fb642c728a8ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5035f5bba1f92e87163043cfde5e3672"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>FLASH_ALLPAGE_SELECTED</b>&#160;&#160;&#160;0xFFFFFFFFU</td></tr>
<tr class="separator:ga5035f5bba1f92e87163043cfde5e3672"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> { <br />
&#160;&#160;<b>FLASH_BUSY</b> = 1, 
<b>FLASH_ERROR_ERPC</b>, 
<b>FLASH_ERROR_ERPROT</b>, 
<b>FLASH_COMPLETE</b>, 
<br />
&#160;&#160;<b>FLASH_TIMEOUT</b>
<br />
 }</td></tr>
<tr class="memdesc:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">FLASH Status  <a href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">更多...</a><br /></td></tr>
<tr class="separator:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gacaff2d6333c831e1f2f2fb1e4be5bc35">FLASH_OP_Unlock</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock the FLASH Page Erase/Write access.  <a href="group___f_l_a_s_h.html#gacaff2d6333c831e1f2f2fb1e4be5bc35">更多...</a><br /></td></tr>
<tr class="separator:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gad8eda1dd6e3928e88c40e2a1e54bac64">FLASH_OP_Lock</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlock the FLASH Page Erase/Write access.  <a href="group___f_l_a_s_h.html#gad8eda1dd6e3928e88c40e2a1e54bac64">更多...</a><br /></td></tr>
<tr class="separator:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4084d0184bab463a1579271bf474aaef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga4084d0184bab463a1579271bf474aaef">FLASH_Unlock</a> (void)</td></tr>
<tr class="memdesc:ga4084d0184bab463a1579271bf474aaef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlock the FLASH controller register write-protect.  <a href="group___f_l_a_s_h.html#ga4084d0184bab463a1579271bf474aaef">更多...</a><br /></td></tr>
<tr class="separator:ga4084d0184bab463a1579271bf474aaef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46899557353c4312ddbe3f25e65df1d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga46899557353c4312ddbe3f25e65df1d8">FLASH_Lock</a> (void)</td></tr>
<tr class="memdesc:ga46899557353c4312ddbe3f25e65df1d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock the FLASH controller register write-protect.  <a href="group___f_l_a_s_h.html#ga46899557353c4312ddbe3f25e65df1d8">更多...</a><br /></td></tr>
<tr class="separator:ga46899557353c4312ddbe3f25e65df1d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga94c1e51a9c3bf8d48eb6eb4a4d054861">FLASH_ITConfig</a> (uint32_t FLASH_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified FLASH interrupts.  <a href="group___f_l_a_s_h.html#ga94c1e51a9c3bf8d48eb6eb4a4d054861">更多...</a><br /></td></tr>
<tr class="separator:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gabdabeceeb7c2b03a55da23464ed03cf7">FLASH_ClearITPendingBit</a> (uint32_t FLASH_IT)</td></tr>
<tr class="memdesc:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the specified FLASH interrupt flag.  <a href="group___f_l_a_s_h.html#gabdabeceeb7c2b03a55da23464ed03cf7">更多...</a><br /></td></tr>
<tr class="separator:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54f590d613cea8f3147c76a07fcccb24"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga54f590d613cea8f3147c76a07fcccb24">FLASH_GetITStatus</a> (uint32_t Flag)</td></tr>
<tr class="memdesc:ga54f590d613cea8f3147c76a07fcccb24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified FLASH interrupt has occurred or not.  <a href="group___f_l_a_s_h.html#ga54f590d613cea8f3147c76a07fcccb24">更多...</a><br /></td></tr>
<tr class="separator:ga54f590d613cea8f3147c76a07fcccb24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga272a03dfca95d60ff6b5b28cd7d532c5">FLASH_GetFlagStatus</a> (uint32_t Flag)</td></tr>
<tr class="memdesc:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified FLASH flag is set or not.  <a href="group___f_l_a_s_h.html#ga272a03dfca95d60ff6b5b28cd7d532c5">更多...</a><br /></td></tr>
<tr class="separator:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ad803999ae93ec03700983c59cae264"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga2ad803999ae93ec03700983c59cae264">FLASH_WaitForLastOperation</a> (uint32_t Timeout)</td></tr>
<tr class="memdesc:ga2ad803999ae93ec03700983c59cae264"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait for a FLASH operation to complete.  <a href="group___f_l_a_s_h.html#ga2ad803999ae93ec03700983c59cae264">更多...</a><br /></td></tr>
<tr class="separator:ga2ad803999ae93ec03700983c59cae264"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83107c4faee4e675e1a021c2530c9970"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga83107c4faee4e675e1a021c2530c9970">FLASH_ProgramByte</a> (uint32_t Addr, uint8_t Data)</td></tr>
<tr class="memdesc:ga83107c4faee4e675e1a021c2530c9970"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a byte (8-bit) at a specified address.  <a href="group___f_l_a_s_h.html#ga83107c4faee4e675e1a021c2530c9970">更多...</a><br /></td></tr>
<tr class="separator:ga83107c4faee4e675e1a021c2530c9970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad53043f7548575b094741497d9a54eb1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gad53043f7548575b094741497d9a54eb1">FLASH_ProgramHalfWord</a> (uint32_t Addr, uint16_t Data)</td></tr>
<tr class="memdesc:gad53043f7548575b094741497d9a54eb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a half-word (16-bit) at a specified address.  <a href="group___f_l_a_s_h.html#gad53043f7548575b094741497d9a54eb1">更多...</a><br /></td></tr>
<tr class="separator:gad53043f7548575b094741497d9a54eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac2d3631c3b2ce41eba346ce71c922424"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gac2d3631c3b2ce41eba346ce71c922424">FLASH_ProgramWord</a> (uint32_t Addr, uint32_t Data)</td></tr>
<tr class="memdesc:gac2d3631c3b2ce41eba346ce71c922424"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a word (32-bit) at a specified address.  <a href="group___f_l_a_s_h.html#gac2d3631c3b2ce41eba346ce71c922424">更多...</a><br /></td></tr>
<tr class="separator:gac2d3631c3b2ce41eba346ce71c922424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga86ffd9e8dc00f2cde1e1ae767803447a">FLASH_EraseChip</a> (void)</td></tr>
<tr class="memdesc:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Full erase of FLASH memory Bank  <a href="group___f_l_a_s_h.html#ga86ffd9e8dc00f2cde1e1ae767803447a">更多...</a><br /></td></tr>
<tr class="separator:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga13cd893db6616373129eaae80949fa4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga13cd893db6616373129eaae80949fa4d">FLASH_ErasePage</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:ga13cd893db6616373129eaae80949fa4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase the specified FLASH memory page  <a href="group___f_l_a_s_h.html#ga13cd893db6616373129eaae80949fa4d">更多...</a><br /></td></tr>
<tr class="separator:ga13cd893db6616373129eaae80949fa4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This file contains all the functions prototypes for the FLASH firmware library. </p>
<dl class="section author"><dt>作者</dt><dd>Westberry Application Team </dd></dl>
<dl class="section version"><dt>版本</dt><dd>V0.0.3 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>12-April-2023 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
